package it.prova;

public class Consts
{
	public static final int DATA_UNIT = 0;
	public static final int MULTI_DATA_UNIT = 1;
	public static final int ENTRY_UNIT = 2;
	
	public static final String ATTRIBUTE_TYPE_STRING = "string";
	public static final String ATTRIBUTE_TYPE_INT = "integer";
	public static final String ATTRIBUTE_TYPE_DATE = "date";
	public static final String ATTRIBUTE_TYPE_PASSWORD = "password";
	
//	public static final String DEFAULT_MODEL_FILE_PATH = "c:/sviluppo/default.model";
	public static final String DATA_UNIT_MODEL_FILE_PATH = "c:/sviluppo/dataunit.model";
	public static final String DATA_UNIT_PAGE_FILE_PATH = "c:/sviluppo/dataunit_page.wr";
//	public static final String DEFAULT_PAGE_FILE_PATH = "c:/sviluppo/page.wr";
	public static final String DEFAULT_PROPERTIES_PAGE_FILE_PATH = "c:/sviluppo/Properties.wr";
	public static final String ENTRY_UNIT_MODEL_FILE_PATH = "c:/sviluppo/entryunit.model";
	public static final String ENTRY_UNIT_PAGE_FILE_PATH = "c:/sviluppo/entryunit_page.wr";
	public static final String MULTI_DATA_UNIT_MODEL_FILE_PATH = "c:/sviluppo/multidataunit.model";
	public static final String MULTI_DATA_UNIT_PAGE_FILE_PATH = "c:/sviluppo/multidataunit_page.wr";
	
	public static final String FIELD_TYPE_FIELD = "Field";
	public static final String FIELD_TYPE_MULTI_SELECTION_FIELD = "MultiSelectionField";
	public static final String FIELD_TYPE_SELECTION_FIELD = "SelectionField";
	
	public static final String MODEL_ATTRIBUTE_NAME = "name";
	public static final String MODEL_ATTRIBUTE_QUERY = "/WebProject/DataModel/Entity";
	public static final String MODEL_ATTRIBUTE_TAG = "Attribute";
	public static final String MODEL_ATTRIBUTE_TO = "to";
	public static final String MODEL_ATTRIBUTE_TYPE = "type";
	public static final String MODEL_ENTITY_ATTRIBUTE_NAME = "name";
	
	public static final String NUMBER_ATTRIBUTE_NAME = "number";
	
	public static final String DATA_UNIT_PAGE_ATTRIBUTES_QUERY = "/Page/ContentUnits/DataUnit";
	public static final String ENTRY_UNIT_PAGE_CHILD_FIELD_NAME = "Field";
	public static final String ENTRY_UNIT_PAGE_CHILD_LINK_NAME = "Link";
	public static final String ENTRY_UNIT_PAGE_ATTRIBUTES_QUERY = "/Page/ContentUnits/EntryUnit";
	public static final String MULTI_DATA_UNIT_PAGE_ATTRIBUTES_QUERY = "/Page/ContentUnits/MultiDataUnit";
	public static final String PAGE_DISPLAY_ATTRIBUTES_NAME = "displayAttributes";
	public static final String PAGE_ENTITY_NAME = "entity";
	public static final String PAGE_ID = "id";
	public static final String PAGE_QUERY = "/Page";
	public static final String PAGE_TARGET_NAME = "target";
	public static final String PAGE_UNIT_TYPE_NAME = "unitType";
	public static final String PROPERTIES_PAGE_ATTRIBUTES_QUERY = "/SiteView/OperationUnits/CreateUnit";
	
	public static final String MODEL_FILE_EXTENSION = "model";
	public static final String OUTPUT_FILE_EXTENSION = "output";
	public static final String TEMPLATE_FILE_EXTENSION = "template";
	
	public static final String TAG_BODY_QUERY = "//body";
	
	public static final String TAG_BODY_NAME = "body";
	public static final String TAG_ITERATE_NAME = "Iterate";
	public static final String TAG_LABEL_NAME = "Label";
	public static final String TAG_LINK_NAME = "Link";
	public static final String TAG_TABLE_NAME = "table";
	public static final String TAG_TBODY_NAME = "tbody";
	public static final String TAG_TR_NAME = "tr";
	public static final String TAG_VALUE_NAME = "Value";
	
	public static final String TAG_ATTRIBUTE_NAME = "name";
	public static final String TAG_ATTRIBUTE_VALUE = "value";
	
	public static final String URI_DATAUNIT = "http://www.webratio.com/2006/TagLib/DataUnit";
	public static final String URI_ENTRYUNIT = "http://www.webratio.com/2006/TagLib/EntryUnit";
	public static final String URI_MULTIDATAUNIT = "http://www.webratio.com/2006/TagLib/MultiDataUnit";
	
	public static final String WR_END_TAG = "</webratio>";
	public static final String WR_START_TAG = "<webratio>";
	
	public static final String WR_PLACE_HOLDER = "$wr_tag$";
	public static final String WR_PLACE_HOLDER_ESCAPED = "\\$wr_tag\\$";
	public static final String WR_VALUE_LABEL_PLACE_HOLDER = "<wr:Label />";
	public static final String WR_VALUE_VALUE_PLACE_HOLDER = "<wr:Value />";
}